package com.neibu.hw5.demo04;

import java.util.function.Predicate;

/**
 * @author bin
 * @date 2025 - 04 -02
 **/
public class Maintest {
    public static void main(String[] args) {

        Predicate<String> predicate = (e) ->{
            String[] arr = e.split("@");
            if(arr.length != 2){
                return false;
            }
            if(arr[0].length() < 5){
                return false;
            }
            return true;
        };


        System.out.println(predicate.test("3448915067@qq.com"));
    }
}
